package com.hearwego;

import com.hearwego.utilities.Utilities;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout;

public class TabMiViajeFragment extends BaseFragment {

    private Button mGotoButton;
    private RelativeLayout r_favoritos, r_lugares, r_gastos, r_notas, r_fotos, r_trip;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        View view       =   inflater.inflate(R.layout.tab_mi_viaje, container, false);
        
        r_notas = (RelativeLayout) view.findViewById(R.id.rl_mis_notas);
        r_gastos = (RelativeLayout) view.findViewById(R.id.rl_mis_gastos);
        
        r_notas.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
	            mActivity.pushFragments(Utilities.TAB_B, new TabMisNotas(),true,true);
				
			}
		});
        r_gastos.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
	            mActivity.pushFragments(Utilities.TAB_B, new TabMisGastos(),true,true);

			}
		});
        
        
        return view;
    }
//
//    private OnClickListener listener        =   new View.OnClickListener(){
//        @Override
//        public void onClick(View v){
//            /* Go to next fragment in navigation stack*/
//            mActivity.pushFragments(AppConstants.TAB_B, new AppTabBSecondFragment(),true,true);
//        }
//    };
}